package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * ApiResponseAccountAttendServiceData
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ApiResponseAccountAttendServiceData   {
  @JsonProperty("name")
  private String name = null;

  @JsonProperty("image")
  private String image = null;

  @JsonProperty("phone")
  private String phone = null;

  /**
   * 类型；ATTEND：投顾；MANAGER：客户经理
   */
  public enum TypeEnum {
    ATTEND("ATTEND"),
    
    MANAGER("MANAGER");

    private String value;

    TypeEnum(String value) {
      this.value = value;
    }

    @Override
    @JsonValue
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static TypeEnum fromValue(String text) {
      for (TypeEnum b : TypeEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }
  }

  @JsonProperty("type")
  private TypeEnum type = null;

  public ApiResponseAccountAttendServiceData name(String name) {
    this.name = name;
    return this;
  }

  /**
   * 姓名
   * @return name
  **/
  @ApiModelProperty(example = "张三", value = "姓名")


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public ApiResponseAccountAttendServiceData image(String image) {
    this.image = image;
    return this;
  }

  /**
   * 头像
   * @return image
  **/
  @ApiModelProperty(example = "http://sdfsdfsd.jpg", value = "头像")


  public String getImage() {
    return image;
  }

  public void setImage(String image) {
    this.image = image;
  }

  public ApiResponseAccountAttendServiceData phone(String phone) {
    this.phone = phone;
    return this;
  }

  /**
   * 手机号
   * @return phone
  **/
  @ApiModelProperty(example = "18688888888", value = "手机号")


  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public ApiResponseAccountAttendServiceData type(TypeEnum type) {
    this.type = type;
    return this;
  }

  /**
   * 类型；ATTEND：投顾；MANAGER：客户经理
   * @return type
  **/
  @ApiModelProperty(example = "MANAGER", value = "类型；ATTEND：投顾；MANAGER：客户经理")


  public TypeEnum getType() {
    return type;
  }

  public void setType(TypeEnum type) {
    this.type = type;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiResponseAccountAttendServiceData apiResponseAccountAttendServiceData = (ApiResponseAccountAttendServiceData) o;
    return Objects.equals(this.name, apiResponseAccountAttendServiceData.name) &&
        Objects.equals(this.image, apiResponseAccountAttendServiceData.image) &&
        Objects.equals(this.phone, apiResponseAccountAttendServiceData.phone) &&
        Objects.equals(this.type, apiResponseAccountAttendServiceData.type);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, image, phone, type);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiResponseAccountAttendServiceData {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    image: ").append(toIndentedString(image)).append("\n");
    sb.append("    phone: ").append(toIndentedString(phone)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

